home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c
- Subject: Re: getopt()
- Date: 24 Mar 1996 08:41:54 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4j3u0iINN6ep@keats.ugrad.cs.ubc.ca>
- References: <3151FEF2.167E@mashie.ece.jhu.edu>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <3151FEF2.167E@mashie.ece.jhu.edu>,
- Chenyang Xu <chenyang@mashie.ece.jhu.edu> wrote:
- >Hi, there,
- >
- > What is the role of colon in the string of getopt()? For example,
- >
- >while ((c = getopt(argc, argv, "f:o:cdDS")) != EOF)
- >...
- >
- > Thanks for any shedded light!
-
- Getopt is not a part of the C language. Read the man page.
-
- The colon indicates that the preceding option letter requires an argument, like
- -f filename.
-
- --
-
-